package com.compass.client;

import com.compass.ui.client.CompassDock;
import com.extjs.gxt.ui.client.widget.Viewport;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Compass implements EntryPoint
{
	@Override
	public void onModuleLoad()
	{
		Viewport mainPanel = new Viewport();
		CompassDock dock = new CompassDock();
		
		mainPanel.setLayout(new FitLayout());
		mainPanel.add(dock);
		
		RootPanel.getBodyElement().setAttribute("style", "margin: 0px");
		RootPanel.get().add(mainPanel);
	}
}
